package assess

import (
	v1 "gitcode.com/G-YT/ANN/server/api/v1"
	"github.com/gin-gonic/gin"
)

type CustomerRouter struct {
}

// InitCustomerRouter 初始化客户档案路由
func (s *CustomerRouter) InitCustomerRouter(Router *gin.RouterGroup) {
	customerRouter := Router.Group("customer")
	customerApi := v1.ApiGroupApp.AssessApiGroup.CustomerApi
	{
		customerRouter.POST("createCustomer", customerApi.CreateCustomer)             // 创建客户档案
		customerRouter.GET("getCustomerList", customerApi.GetCustomerList)            // 分页获取客户档案列表
		customerRouter.GET("getCustomer", customerApi.GetCustomerById)                // 根据ID获取客户档案
		customerRouter.PUT("updateCustomer", customerApi.UpdateCustomer)              // 更新客户档案
		customerRouter.DELETE("deleteCustomer", customerApi.DeleteCustomer)           // 删除客户档案
		customerRouter.DELETE("deleteCustomerByIds", customerApi.DeleteCustomerByIds) // 批量删除客户档案
	}
}
